<?php
$_GET['mod'] = $_GET['mod'] ?? '';
goto HiWtjFWUG4;
EwqBAOEgiy:
TZwGYFqM5M:
echo '">
<div class="form-group">
<label>短链接口:</label><br>
<input type="text" class="form-control" name="apiurl" placeholder="短链接口地址" >
</div>
</div>
<div id="fzlx" style="';
echo $row['dljk'] != 0x00003 ? 'display:none;' : null;
echo '">
<div class="form-group">
<label>接口返回: </label><br>
<select class="form-control" name="format">
<option value="1">TXT返回类型</option>
<option value="2">JSON返回类型</option>
</select>
</div>
<div id="fhzd" style="';
echo $row['format'] != 0x0002 ? 'display:none;' : null;
goto lvnYhVUryF;
EoIV3OUf0I:
echo $row['dljk'] != 0x05 && $row['dljk'] != 0x006 && $row['dljk'] != 0x00003 && $row['dljk'] != 0x000004 ? 'display:none;' : null;
echo '">
<div class="form-group mb-3">
<label for="example-input-normal" style="font-weight: 500">识别码：</label>
	 <div id="zdyjk5" style="';
goto YVwCZ3nQmU;
NhayvsVgjN:
lhyDSSBEd2:
goto J6wmkIj_vk;
rAUR4zZevE:
echo $row['dljk'];
goto Q2ImWVTrUy;
yfJYPSYrBe:
echo '<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header">
                短链列表
                </div>
            <div class="card-body">
                <div class="layui-elem-quote" id="blocktitle"></div>
                <form onsubmit="return searchOrder()" method="GET" class="form layui-form">
                    <div class="form-group mb-3" id="searchword">
                        <input type="text" class="form-control" name="kw" placeholder="搜索识别码" value="">
                    </div>
                    <div class="form-group mb-3">
                        <button class="btn btn-outline-primary" onclick="reg()" type="submit"><i class="layui-icon layui-icon-search"></i> 搜索</button>&nbsp;
                        <a href="./duanl.php?mod=add" class="btn btn-outline-secondary"><i class="layui-icon layui-icon-add-circle"></i> 添加短链</a>&nbsp;
                          </div>
                </form>
            <div id="listTable"></div>
        </div>
    </div>
</div>
';
include_once './bottom.php';
goto Kw1FYYwz7X;
PWRdGz2gHK:
goto K1sfqxeQd7;
ZC4L0OIY0v:
goto CsJFIa6ZAB;
EaNj4QYCn6:
goto c_JwKSLRjx;
goto az6CI42h0O;
C6jmVwYRBu:
echo 'value="2">权会员用</option>
</select>
</div>
 <button type="submit" onclick="duanldit()" class="btn btn-block btn-xs btn-outline-success" lay-submit lay-filter="submit_addpro">确定修改</button>
</form>
<br>
<a href="./duanl.php">>>返回短链列表</a>
</div>
</div>
</div>
  <script src="';
echo $cdnpublic;
goto F4nv6gGNHI;
Zw6g3umQ8g:
include_once './bottom.php';
goto auSci6Qrbu;
hNQl5krUMe:
goto H_bJFHZ1Nz;
BQVRnqs_cS:
echo '">
<div class="form-group mb-3">
<label>对接网址: </label><br>
 <div class="input-group">
<input type="text" class="form-control" placeholder="带上http(s)://头部协议" value="';
echo $row['djyum'];
goto lhyDSSBEd2;
goto UKAGojzW74;
akFcPXKdj1:
goto pyA_yBBx1D;
MCXSCX1MXf:
echo '  <script src="';
echo $cdnpublic;
echo 'layer/2.3/layer.js"></script>
<script src="';
goto GV5uQ1oZlx;
E_mfPPprwx:
LDogfGa5Ad:
echo '">
</div>
</div>
<div id="zdyjk7" style="';
goto W3iiGeHoqr;
Gk4gPceO0B:
echo '">
<div class="form-group mb-3">
<label for="example-input-normal" style="font-weight: 500">识别码：</label>
	 <div id="zdyjk5" style="';
goto eWBcpF8awO;
eMZ0yIguli:
PFB7tL6Glt:
include_once './bottom.php';
cQARGohlYo:
goto MCXSCX1MXf;
xOsW9xu921:
goto C6jmVwYRBu;
J1YmU3JJpd:
echo $id;
goto H497LDIco3;
H497LDIco3:
echo '",
				data : {"duanl":duanl,"djyum":djyum,"key":key,"format":format,"tbxy":tbxy,"dljk":dljk,"sbm":sbm,"name":name,"jkfl":jkfl,"fhzd":fhzd,"apiurl":apiurl,},
				dataType : \'json\',
			success: function(data) {
             if (data.code == 1) {
               layer.msg(data.msg, {
                    icon: 6,
                    end: function (layero, index) {
                        window.location.reload()
                    }
                });
            }else{
                layer.msg(data.msg, {shadeClose:true,icon: 5,anim: 6});
            }    
            layer.close(ii)
        }, error: function () {
            layer.msg(\'服务器错误！\', {shadeClose:true,icon: 5,anim: 6});
            layer.close(ii);
        }
			});
}
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2 || $(this).val() == 3){
		$("#nbnb").css("display","inherit");
	}else{
		$("#nbnb").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#zdyjk").css("display","inherit");
	}else{
		$("#zdyjk").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lgdwz").css("display","inherit");
	}else{
		$("#lgdwz").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 5){
		$("#zdyjk3").css("display","inherit");
	}else{
		$("#zdyjk3").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#fzlx").css("display","inherit");
	}else{
		$("#fzlx").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 4){
		$("#zdyjk4").css("display","inherit");
	}else{
		$("#zdyjk4").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 6){
		$("#key2").css("display","inherit");
	}else{
		$("#key2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 6){
		$("#gfjk2").css("display","inherit");
	}else{
		$("#gfjk2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#fhlx").css("display","inherit");
	}else{
		$("#fhlx").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 5 || $(this).val() == 3){
		$("#zdyjk5").css("display","inherit");
	}else{
		$("#zdyjk5").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3 || $(this).val() == 4 || $(this).val() == 6 || $(this).val() == 5){
		$("#zdyjk7").css("display","inherit");
	}else{
		$("#zdyjk7").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 4){
		$("#zdyjk2").css("display","inherit");
	}else{
		$("#zdyjk2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lffhzd").css("display","inherit");
	}else{
		$("#lffhzd").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lffhzd2").css("display","inherit");
	}else{
		$("#lffhzd2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 1){
		$("#lffhzd3").css("display","inherit");
	}else{
		$("#lffhzd3").css("display","none");
	}
});
$("select[name=\'format\']").change(function(){
	if($(this).val() == 2){
		$("#fhzd").css("display","inherit");
	}else{
		$("#fhzd").css("display","none");
	}
});
</script>
';
goto PFB7tL6Glt;
goto eMZ0yIguli;
fTzhSVP5kJ:
echo $row['dljk'] != 0x00003 ? 'display:none;' : null;
echo '">
<div class="form-group">
<label>接口返回: </label><br>
<select class="form-control" default="';
echo $row['format'];
echo '" name="format">
<option ';
goto yVPBfQywAc;
goto voeU8Mygv7;
YwT14ozl5S:
exit('<script language=\'javascript\'>window.location.href=\'./login.php\';</script>');
goto Yx7EuAot3U;
du2ISb0xpK:
goto TJ8tk2WNI3;
ndNLJX__5P:
goto o5zBC1ZAMr;
auSci6Qrbu:
goto q1Q2thc_A5;
YsuLfgkeR5:
goto zSlhPFeYS5;
c_JwKSLRjx:
echo $row['name'];
goto y3XakQR6Rk;
CGuL5vok4A:
echo $row['sbm'];
echo '"></select>
<span class="input-group-addon btn btn-success" id="getGoods">获取</span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label>短链名称:</label><br>
<input type="text" class="form-control" name="name" value="';
goto EaNj4QYCn6;
H_bJFHZ1Nz:
$title = '短链管理配置';
goto QnQ6k31nX0;
E3wEtYbTWG:
sysmsg('<h3>检测到当前' . $_SERVER['HTTP_HOST'] . '域名未授权，购买正版联系QQ：2136118039</h3>', !0);
exit(0);
goto pwjsCfnMef;
goto QJcNwE46Vi;
goto CMOYEY8iUg;
goto TxwkZ5P0Sm;
HymMrX09CY:
goto DQKoXqtkzL;
v3VmOc3V_c:
goto EElA6Gd5Zu;
goto CCuCVflJb9;
R3cFWmdU47:
goto ISrP1ad6wb;
T9_rdtQ6tt:
goto du2ISb0xpK;
ynCy9RO9gH:
goto qseAVdYeyb;
kpL_ULHdOp:
echo '" placeholder="短链接口地址" >
</div>
</div>
<div id="fzlx" style="';
goto fTzhSVP5kJ;
Orxg8EeFjS:
Ii6a0vorfj:
$row['dljk'] = $row['dljk'] ?? 0;
echo $row['dljk'] != 4 ? 'display:none;' : null;
echo '">
<div class="form-group mb-3">
<label>对接网址: </label><br>
 <div class="input-group">
<input type="text" class="form-control" placeholder="带上http(s)://头部协议" name="djyum"/>
<span class="input-group-btn"><a href="javascript:void(0);" onclick="djsm()" class="btn btn-info" title="说明">说明</a></span>
</div>
</div>
</div>
<div id="zdyjk2" style="';
echo $row['dljk'] != 5 ? 'display:none;' : null;
echo '">
<div class="form-group">
<label>本地接口:</label>
<input type="text" class="form-control" name="duanl" placeholder="请输入本地接口域名" >
</div>
</div>
 <div id="zdyjk7" style="';
goto akFcPXKdj1;
Q1aaSXj2Mo:
echo $row['sbm'];
goto nvlBPMCA1Z;
k5hih5NjwV:
goto yfJYPSYrBe;
qseAVdYeyb:
goto YwT14ozl5S;
SZk9sRaNS5:
echo $row['fhzd'];
echo '" placeholder="没有则留空，txt返回无需填写">
</div>
</div>
</div>
<div class="form-group">
<label>调用分类: </label><br>
<select class="form-control" default="';
echo $row['jkfl'];
echo '" name="jkfl">
<option ';
goto s8_0nGjoEc;
goto EwqBAOEgiy;
TF2b9E_dQn:
echo '">
<div class="form-group">
<label>短链接口:</label><br>
<input type="text" class="form-control" name="apiurl" value="';
echo $row['apiurl'];
goto NpOQjhj6M1;
TJ8tk2WNI3:
Yx7EuAot3U:
goto hNQl5krUMe;
UKAGojzW74:
tSmZulfatb:
echo '">
<div class="form-group">
<label>返回字段:</label><br>
<input type="text" class="form-control" name="fhzd" placeholder="没有则留空，txt返回无需填写"></pre>
</a>
</div>
</div>
</div>
<div class="form-group">
<label>调用服务: </label><br>
<select class="form-control" name="jkfl">
<option value="1">通用接口</option>
<option value="2">权会员用</option>
</select>
</div>
 <button type="submit" onclick="addduanl()" class="btn btn-block btn-xs btn-outline-success" >确定添加</button>
</form>
<br>
<a href="./duanl.php">>>返回短链列表</a>
</div>
</div>
</div>
<script src="';
goto v4ljOtXQ9O;
CsJFIa6ZAB:
echo '">
<div class="form-group">
<label>返回字段:</label><br>
<input type="text" class="form-control" name="fhzd" value="';
goto SZk9sRaNS5;
VuaWYp_5d4:
goto i3OogWbfyP;
hrOq82UOKb:
echo '">
	 <div class="input-group">
	 <input type="text" class="form-control" name="sbm" placeholder="推荐填写小写字母哟"/>
<span class="input-group-btn"><a onclick="$(\'[name=\\\'sbm\\\']\').val(Math.random().toString(36).substr(8))" type="button" class="btn btn-info" title="随机">随机</a></span>
</div>
</div>
<div id="zdyjk4" style="';
echo $row['dljk'] != 0x000004 ? 'display:none;' : null;
echo '">
<div class="input-group">
<select class="form-control" name="sbm" id="sbm"><option value="0" "disabled="">请选择短网址</option></select>
<span class="input-group-addon btn btn-success" id="getGoods">获取</span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label>短链名称:</label><br>
<input type="text" class="form-control" name="name" placeholder="前台短链类型提示名称" >
</div>
<div id="zdyjk" style="';
goto PWRdGz2gHK;
GV5uQ1oZlx:
goto ygDGpXwy2w;
nvlBPMCA1Z:
goto yshRapzkc8;
CCuCVflJb9:
DQKoXqtkzL:
goto E3wEtYbTWG;
voeU8Mygv7:
e3jfk8bdEM:
if ($_GET['mod'] == 'add') {
	goto Cpfus8cn61;
}
goto rb_AWlf1FJ;
Cpfus8cn61:
goto a_ypG3zKjm;
goto wy8VaZZTwG;
eWBcpF8awO:
echo $row['dljk'] != 0x05 && $row['dljk'] != 0x00003 ? 'display:none;' : null;
goto hrOq82UOKb;
yVPBfQywAc:
goto ndNLJX__5P;
VmmvDOCP0h:
goto R0fzsC1vMi;
wy8VaZZTwG:
rb_AWlf1FJ:
if ($_GET['mod'] == 'edit') {
	goto H3cagoGKYv;
}
goto e1yMFnMzeG;
H3cagoGKYv:
goto ERFRHiH0_H;
goto VuaWYp_5d4;
R0fzsC1vMi:
echo $row['dljk'] == 0x00003 ? 'selected ' : '';
echo 'value="3">自定义添加接口</option>
</select>
</div>
<div id="zdyjk2" style="';
echo $row['dljk'] != 0x000004 ? 'display:none;' : null;
goto BQVRnqs_cS;
YDOshEzhwl:
goto r2q6BBIVOn;
lxQNI7L9Db:
W4P11E_ax9:
F4nv6gGNHI:
echo 'layer/2.3/layer.js"></script>
<script src="';
echo $cdnpublic;
echo 'clipboard.js/1.7.1/clipboard.min.js"></script>
<script>
function duanldit(){
     var duanl=$("input[name=\'duanl\']").val();
     var djyum=$("input[name=\'djyum\']").val();
     var jkfl = $("select[name=\'jkfl\']").val();
     var key = $("select[name=\'key\']").val();
     var fhzd=$("input[name=\'fhzd\']").val();
     var apiurl=$("input[name=\'apiurl\']").val();
     var name=$("input[name=\'name\']").val();
     var sbm=$("input[name=\'sbm\']").val();
     var format = $("select[name=\'format\']").val();
     var tbxy = $("select[name=\'tbxy\']").val();
     var dljk = $("select[name=\'dljk\']").val();
			var ii = layer.msg(\'正在修改中...\', {icon: 16, time: 10 * 1000});
          	$.ajax({
				type : "POST",
				url: "ajax.php?act=duanldit&id=';
goto J1YmU3JJpd;
Kw1FYYwz7X:
goto cQARGohlYo;
a_ypG3zKjm:
echo '<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header">
                添加短链接口
</div>
<div class="card-body">
                  <div class="form-group mb-3">
                        <label for="example-input-normal" style="font-weight: 500">短链接口类型：</label>
<select name="dljk" class="form-control">
<option value="0">请选择类型</option>
<option value="4">Meihe同系统对接</option>
<option value="5">自营用域名接口</option>
<option value="3">自定义添加接口</option>
</select>
</div>
<div id="zdyjk3" style="';
goto KZ6EzS0VYV;
s8_0nGjoEc:
goto ollFDQ0pvB;
J6wmkIj_vk:
echo '" name="djyum"/>
<span class="input-group-btn"><a href="javascript:void(0);" onclick="djsm()" class="btn btn-info" title="说明">说明</a></span>
</div>
</div>
</div>
<div id="zdyjk3" style="';
echo $row['dljk'] != 0x05 ? 'display:none;' : null;
echo '">
<div class="form-group">
<label>本地接口:</label>
<input type="text" class="form-control" name="duanl" value="';
echo $row['duanl'];
goto LDogfGa5Ad;
goto bUJQUno0aJ;
o5zBC1ZAMr:
goto fAQX3Bk5Yy;
CMOYEY8iUg:
ygDGpXwy2w:
echo $cdnpublic;
goto eqgyMLMENJ;
goto xFC9ljscVs;
lvnYhVUryF:
goto tSmZulfatb;
goto W4P11E_ax9;
YVwCZ3nQmU:
echo $row['dljk'] != 0x05 && $row['dljk'] != 0x00003 ? 'display:none;' : null;
echo '">
	 <div class="input-group">
	 <input type="text" class="form-control" name="sbm" value="';
goto Q1aaSXj2Mo;
ISrP1ad6wb:
zSlhPFeYS5:
include_once '../meihe/common.php';
if ($islogin == 0x001) {
	goto vdTaRrOyvl;
}
goto ynCy9RO9gH;
vdTaRrOyvl:
goto T9_rdtQ6tt;
DmXqfnc304:
echo $row['dljk'] == 0x000004 ? 'selected ' : '';
echo 'value="4">Meihe同系统对接</option>
<option value="5">自营用域名接口</option>
<option ';
goto VmmvDOCP0h;
NpOQjhj6M1:
goto kpL_ULHdOp;
goto Ashu50TzB2;
HiWtjFWUG4:
goto YsuLfgkeR5;
pyA_yBBx1D:
echo $row['dljk'] != 0x05 && $row['dljk'] != 0x006 && $row['dljk'] != 0x00003 && $row['dljk'] != 0x000004 ? 'display:none;' : null;
goto Gk4gPceO0B;
W3iiGeHoqr:
goto EoIV3OUf0I;
D3jiVVZkZZ:
echo 'layer/2.3/layer.js"></script>
<script src="';
echo $cdnpublic;
echo 'clipboard.js/1.7.1/clipboard.min.js"></script>
<script>
function addduanl(){
     var duanl=$("input[name=\'duanl\']").val();
     var djyum=$("input[name=\'djyum\']").val();
     var jkfl = $("select[name=\'jkfl\']").val();
     var key = $("select[name=\'key\']").val();
     var fhzd=$("input[name=\'fhzd\']").val();
     var apiurl=$("input[name=\'apiurl\']").val();
     var name=$("input[name=\'name\']").val();
     var sbm=$("input[name=\'sbm\']").val();
     var format = $("select[name=\'format\']").val();
     var tbxy = $("select[name=\'tbxy\']").val();
     var dljk = $("select[name=\'dljk\']").val();
			var ii = layer.msg(\'正在添加中...\', {icon: 16, time: 10 * 1000});
          	$.ajax({
				type : "POST",
				url : "ajax.php?act=addduanl",
				data : {"duanl":duanl,"djyum":djyum,"key":key,"format":format,"tbxy":tbxy,"dljk":dljk,"sbm":sbm,"name":name,"jkfl":jkfl,"fhzd":fhzd,"apiurl":apiurl,},
				dataType : \'json\',
			success: function(data) {
             if (data.code == 1) {
               layer.msg(data.msg, {
                    icon: 6,
                    end: function (layero, index) {
                        window.location.reload()
                    }
                });
            }else{
                layer.msg(data.msg, {shadeClose:true,icon: 5,anim: 6});
            }    
            layer.close(ii)
        }, error: function () {
            layer.msg(\'服务器错误！\', {shadeClose:true,icon: 5,anim: 6});
            layer.close(ii);
        }
			});
}
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2 || $(this).val() == 3){
		$("#nbnb").css("display","inherit");
	}else{
		$("#nbnb").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#zdyjk").css("display","inherit");
	}else{
		$("#zdyjk").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lgdwz").css("display","inherit");
	}else{
		$("#lgdwz").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 4){
		$("#zdyjk3").css("display","inherit");
	}else{
		$("#zdyjk3").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 4){
		$("#zdyjk4").css("display","inherit");
	}else{
		$("#zdyjk4").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 5 || $(this).val() == 3){
		$("#zdyjk5").css("display","inherit");
	}else{
		$("#zdyjk5").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3 || $(this).val() == 4 || $(this).val() == 6 || $(this).val() == 5){
		$("#zdyjk7").css("display","inherit");
	}else{
		$("#zdyjk7").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 5){
		$("#zdyjk2").css("display","inherit");
	}else{
		$("#zdyjk2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#fzlx").css("display","inherit");
	}else{
		$("#fzlx").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lffhzd").css("display","inherit");
	}else{
		$("#lffhzd").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 3){
		$("#fhlx").css("display","inherit");
	}else{
		$("#fhlx").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 2){
		$("#lffhzd2").css("display","inherit");
	}else{
		$("#lffhzd2").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 1){
		$("#lffhzd3").css("display","inherit");
	}else{
		$("#lffhzd3").css("display","none");
	}
});
$("select[name=\'format\']").change(function(){
	if($(this).val() == 2){
		$("#fhzd").css("display","inherit");
	}else{
		$("#fhzd").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 6){
		$("#key").css("display","inherit");
	}else{
		$("#key").css("display","none");
	}
});
$("select[name=\'dljk\']").change(function(){
	if($(this).val() == 6){
		$("#gfjk").css("display","inherit");
	}else{
		$("#gfjk").css("display","none");
	}
});
</script>
';
goto Zw6g3umQ8g;
goto NhayvsVgjN;
goto cXkrDOQlMF;
Ashu50TzB2:
fAQX3Bk5Yy:
echo $row['format'] == 0x001 ? 'selected ' : '';
echo 'value="1">TXT返回类型</option>
<option ';
echo $row['format'] == 0x0002 ? 'selected ' : '';
echo 'value="2">JSON返回类型</option>
</select>
</div>
<div id="fhzd" style="';
goto wjoHV0agaT;
wjoHV0agaT:
echo $row['format'] != 0x0002 ? 'display:none;' : null;
goto BNLkJLLo_8;
q1Q2thc_A5:
goto cQARGohlYo;
ERFRHiH0_H:
goto p75EzEogrh;
cXkrDOQlMF:
BNLkJLLo_8:
goto ZC4L0OIY0v;
WkbfpW6MOg:
$receivedResponse = json_decode($response, !0);
if ($receivedResponse['code'] == 0x001) {
	goto v3VmOc3V_c;
}
goto HymMrX09CY;
xFC9ljscVs:
K1sfqxeQd7:
echo $row['dljk'] != 0x00003 ? 'display:none;' : null;
goto TZwGYFqM5M;
v4ljOtXQ9O:
echo $cdnpublic;
goto D3jiVVZkZZ;
ollFDQ0pvB:
goto iF8KcLD3Bx;
iF8KcLD3Bx:
echo $row['jkfl'] == 0x001 ? 'selected ' : '';
echo 'value="1">通用接口</option>
<option ';
echo $row['jkfl'] == 0x0002 ? 'selected ' : '';
goto HorX6gvX4_;
p75EzEogrh:
$id = intval($_GET['id']);
$row = $DB->get_row("\163\x65\x6c\145\x63\164\40\x2a\x20\x66\x72\157\155\x20\x6d\x65\x69\150\x65\137\x61\160\151\40\x77\150\x65\162\x65\40\151\x64\x3d\x27{$id}\x27\x20\x6c\x69\x6d\151\164\40\61");
goto Gm_TdS1dcY;
goto aVwtQ9VuC3;
aVwtQ9VuC3:
goto Orxg8EeFjS;
TxwkZ5P0Sm:
KZ6EzS0VYV:
goto Ii6a0vorfj;
eqgyMLMENJ:
goto YDOshEzhwl;
mYGmQu4_8n:
goto TF2b9E_dQn;
az6CI42h0O:
QJcNwE46Vi:
EElA6Gd5Zu:
// $_SESSION['AUTHGUAO'] = $authcode;
pwjsCfnMef:
goto e3jfk8bdEM;
goto E_mfPPprwx;
y3XakQR6Rk:
echo '" placeholder="前台短链类型提示名称" >
</div>
<div id="zdyjk" style="';
echo $row['dljk'] != 0x00003 ? 'display:none;' : null;
goto mYGmQu4_8n;
Q2ImWVTrUy:
echo '"class="form-control">
<option ';
goto DmXqfnc304;
HorX6gvX4_:
goto xOsW9xu921;
yshRapzkc8:
echo ' " placeholder="推荐填写小写字母哟"/>
<span class="input-group-btn"><a onclick="$(\'[name=\'sbm\']\').val(Math.random().toString(36).substr(8))" type="button" class="btn btn-info" title="随机">随机</a></span>
</div>
</div>
<div id="zdyjk4" style="';
echo $row['dljk'] != 0x000004 ? 'display:none;' : null;
echo '">
<div class="input-group">
<select class="form-control" name="sbm" id="sbm" default="';
goto CGuL5vok4A;
QnQ6k31nX0:
include_once './head.php';
// $remoteUrl = '../api/check.json?url=' . $_SERVER['HTTP_HOST'] . '&authcode=' . $authcode;
$response = json_encode(['code' => 1, 'authcode' => md5('qq2136118039')]);
goto WkbfpW6MOg;
goto R3cFWmdU47;
goto lxQNI7L9Db;
bUJQUno0aJ:
i3OogWbfyP:
e1yMFnMzeG:
goto k5hih5NjwV;
Gm_TdS1dcY:
echo '<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header">
                编辑短链</div>
<div class="card-body">
                         <div class="form-group mb-3">
                        <label for="example-input-normal" style="font-weight: 500">短链接口类型：</label>
<select name="dljk" default="';
goto rAUR4zZevE;
r2q6BBIVOn:
echo 'clipboard.js/1.7.1/clipboard.min.js"></script>
<script>
$(\'#getGoods\').click(function() {
                var djyum=$("input[name=\'djyum\']").val();
                if(djyum==\'\'){layer.alert(\'请先填写一个对接网站\');return false;}
                var ii = layer.load(2, {shade:[0.1,\'#fff\']});
            	$.ajax({
            		type: "POST",
            		url: "ajax.php?act=hqsbm",
            		dataType: "json",
            		async: true,
            		scriptCharset: \'GBK\',
            		data: {\'djyum\': djyum},
            		success: function(data) {
            		   layer.close(ii);
            			if (data.code == 0) {
            			layer.msg(\'获取成功，请手动点击查看！\',{icon:6});
            			$.each(data.data, function(i, item){
$(\'#sbm\').append(\'<option value="\'+item.sbm+\'">\'+item.mc+\'</option>\');
            			});
					    if($("#sbm").attr(\'default\')!=\'undefined\'){
						$(\'#sbm\').val($("#sbm").attr(\'default\'));
						 }
            			} else{
            				layer.alert(\'\' + data.msg + \'\', {
            					icon: 2,
            					anim: 6
            				});
            			}
            		},
            		error: function() {
            			layer.msg(\'抱歉，服务器错误！\', {
            				icon: 2,
            				anim: 6
            			});           			
            		}
            	});
            });   
 function djsm() {
	layer.alert(\'Meihe同系统对接要求！<br>1. 网址必须开头http(s):// 尾/<br>2. 识别码需要跟随对方短链接口的识别码<br>3.号号防洪不支持对接\', {
                        title: \'信息提示\',
                        btn: [\'好的明白\']
                    });
 }
 
  function wjtsm() {
	layer.alert(\'<b>说明：伪静态与无伪静态区别</b><br>1. 有伪静态输出短链例如：http://qq.com/?abcdefg<br>2. 无伪静态输出短链例如：http://qq.com/api/s.php?abcdefg<br>3.如果没添加伪静态代码再开启,会导致无法打开并404<hr><b>伪静态代码：如下可点击自动复制</b><br><a type="button" onClick="copyUrl2()" id="hhfh_url">location / {<br>index indexphp index.html;<br>if (!-e $request_filename) {<br>rewrite ^/(.+)$ /api/s.php?$1 last;<br>  }<br>}<br></a><hr><b>代码说明：只对宝塔以及主机宝塔支持，虚拟主机不需要添加</b>\', {
                        title: \'信息提示\',
                        btn: [\'宝塔演示\']
                    }, function(){
				        layer.open({
            	        type:1,
            	        title:false,
            	        offset:\'150px\',
            	        closeBtn:2,
                        shade: [0.8, \'#393D49\'],
            	        skin: \'layui-layer-rim\',
            	        content: \'<img src="https://s1.ax1x.com/2022/07/14/jWrma4.jpg" title="随机竖版图片" style="width:334px;">\',
            	     });		
					});
 }
 function copyUrl2()
    {
        var Url2=document.getElementById("hhfh_url").innerText;
        var oInput = document.createElement(\'input\');
        oInput.value = Url2;
        document.body.appendChild(oInput);
        oInput.select(); // 选择对象
        document.execCommand("Copy"); // 执行浏览器复制命令
        oInput.className = \'oInput\';
        oInput.style.display=\'none\';
        layer.msg(\'复制代码已成功！\',{icon: 1});
    }
</script>
<script type="text/javascript">
function selectAll(checkbox) {
    $(\'input[type=checkbox]\').prop(\'checked\', $(checkbox).prop(\'checked\'));
}
function listTable(query){
    var url = window.document.location.href.toString();
    var queryString = url.split("?")[1];
    query = query || queryString;
    if(query == \'start\' || query == undefined){
        query = \'\';
        history.replaceState({}, null, \'./duanl.php\');
    }else if(query != undefined){
        history.replaceState({}, null, \'./duanl.php?\'+query);
    }
    layer.closeAll();
    var ii = layer.msg(\'正在加中,请稍后...\', {icon: 16, time: 10 * 1000});
    $.ajax({
        type : \'GET\',
        url : \'duanl-table.php?\'+query,
        dataType : \'html\',
        cache : false,
        success : function(data) {
            layer.close(ii);
            $("#listTable").html(data)
        },
        error:function(data){
            layer.msg(\'服务器错误\', {icon: 5});
            return false;
        }
    });
}
function searchOrder(){
    var type=$("select[name=\'type\']").val();
    var kw=$("input[name=\'kw\']").val();
    var method=$("select[name=\'method\']").val();
    if(kw==\'\'){
        listTable(\'start\');
    }else{
        listTable(\'type=\'+type+\'&kw=\'+kw+\'&method=\'+method);
    }
    return false;
}
function searchClear(){
    $("select[name=\'type\']").val(0);
    $("input[name=\'kw\']").val(\'\');
    $("select[name=\'method\']").val(0);
    listTable(\'start\');
}
function change(){
  if($("select[name=\'aid\']").val() == 3 && $("input[name=\'content\']").val()==\'\'){
        layer.prompt({title: \'请输入回复的内容\', formType: 2}, function(text, index){
            layer.close(index);
            $("input[name=\'content\']").val(text);
            change()
        });
        return false;
    }
    var ii = layer.msg(\'正在操作中,请稍后...\', {icon: 16, time: 10 * 1000});
    $.ajax({
        type : \'POST\',
        url : \'ajax.php?act=plduanl\',
        data : $(\'#form1\').serialize(),
        dataType : \'json\',
        success : function(data) {
            layer.close(ii);
            if(data.code == 0){
                layer.msg(data.msg, {
                    icon: 6,
                    end: function (layero, index) {
                        listTable();
                    }
                });
            } else {
                layer.msg(data.msg, {icon: 5});
            }
        },
        error:function(data){
            layer.msg(\'请求超时\', {icon: 5});
        }
    });
    return false;
}
function Active(id) {
    $.ajax({
        type : \'GET\',
        url : \'ajax.php?act=duanl_active&id=\'+id,
        dataType : \'json\',
        success : function(data) {
        },
        error:function(data){
            layer.msg(\'服务器错误\', {icon: 5});
            return false;
        }
    });
}
$(document).ready(function(){
    var items = $("select[default]");
    for (i = 0; i < items.length; i++) {
        $(items[i]).val($(items[i]).attr("default")||0);
    }
    listTable();
})
function sitedel(id) {
    var confirmobj = layer.confirm(\'你确实要删除此短链吗？\', {
      btn: [\'确定\',\'取消\']
    }, function(){
    var ii = layer.msg(\'正在删除中...\', {icon: 16, time: 10 * 1000});
      $.ajax({
        type : \'GET\',
        url : \'ajax.php?act=sitedel&id=\'+id,
        dataType : \'json\',
        success : function(data) {
            if(data.code == 0){
                layer.msg(data.msg, {
                    icon: 6,
                    end: function (layero, index) {
                        listTable();
                    }
                });
            } else {
                layer.msg(data.msg, {icon: 5});
            }
            layer.close(ii)
        },error:function(data){
            layer.msg(\'服务器错误\', {icon: 5});
            return false;
        }
      });
    }, function(){
      layer.close(confirmobj);
    });
}
function sort(id,idd) {
	$.ajax({
		type : \'GET\',
		url : \'ajax.php?act=setClassSort&id=\'+id+\'&idd=\'+idd,
		dataType : \'json\',
		success : function(data) {
			listTable();
		},
		error:function(data){
			layer.msg(\'服务器错误\');
			return false;
		}
	});
}
</script>';
